package com.literature.search.file.entity.dto;

import com.literature.search.core.common.SortConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @Author: DangKong
 * @Date: 2023/4/5 14:55
 * @Description:
 */

@Data
@ApiModel("排行参数")
public class TopNDTO {

    @ApiModelProperty(value = "查看排行榜的类型",example = SortConstant.LIKE,allowableValues = "like,download,view,collect")
    @NotNull
    private String type;

    @ApiModelProperty(value = "排行榜的数量",example = "10",notes = "默认10条")
    private Integer topN = 10;
}
